import static org.junit.Assert.*;

public class MaxSubSumOfSequenceTest {

    @org.junit.Test
    public void maxSubArraySum() {
        int []arr1=new int[]{1,-2,3,5,-1};
        int []arr2=new int[]{1, -2, 3, -8, 5, 1};
        int []arr3=new int[]{1, -2, 3,-2, 5, 1};
        assertEquals(MaxSubSumOfSequence.maxSubArraySum(arr1),8);
        assertEquals(MaxSubSumOfSequence.maxSubArraySum(arr2),6);
        assertEquals(MaxSubSumOfSequence.maxSubArraySum(arr3),7);
    }

    @org.junit.Test
    public void main() {
    }
}